﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace test_c_sharp
{
    class Rectangle3
    {
        #region properties
        public int X { get; set; }
        public int Y { get; set; }
        public int Z { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public int Depth { get; set; }
        protected Rectangle Bounds { get; set; }
        #endregion 

        #region initialization
        public Rectangle3(int x, int y, int z, int width, int height, int depth)
        {
            X = x;
            Y = y;
            Z = z;
            Width = width;
            Height = height;
            Depth = depth;
        }
        #endregion

        #region methods
        public bool Intersection(Rectangle3 rectangle1)
        {
            if (!Bounds.Intersects(rectangle1.Bounds))
                return false;

            if (!(Z <= rectangle1.Z + rectangle1.Depth))
                return false;
            if()

            if()

            return true;
        }
        #endregion

    }
}
